package com.hmkj.core.po.system;

import com.hmkj.common.baseMapper.GenericPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.util.function.Consumer;


/**
 * 管理员账户实体信息<br>
 *
 * @author donfy
 * @date   2017-08-08 04:02:25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "管理员账户")
@Table(name = "s_modules")
public class Modules extends GenericPo<Integer> {

    public static final String TABLE_NAME = "s_modules";


	/**名称**/
	@ApiModelProperty(value = "名称")
	private String name;
	/**链接地址**/
	@ApiModelProperty(value = "链接地址")
	private String uri;
	/**图标**/
	@ApiModelProperty(value = "图标")
	private String icon;
	/**上级id**/
	@ApiModelProperty(value = "上级id")
	private String parentId;
	/**备注**/
	@ApiModelProperty(value = "备注")
	private String remark;
	/**选择权限**/
	@ApiModelProperty(value = "选择权限")
	private String optional;
	/**排序**/
	@ApiModelProperty(value = "排序")
	private Integer sort;

    public Modules(){}

    public Modules(Consumer<Modules> consumer){
    consumer.accept(this);
    }
}

